<?php


namespace App\Models\Garbage;
use Illuminate\Database\Eloquent\Model;

class WeichatUser extends Model
{



    /**
     *
     */

    protected $fillable = ['subscribe','openid','nickname','sex','city','country','province','headimgurl','subscribe_time','equipment','card','point'];
    protected $table = 'weichat_users';

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     * 垃圾分类 用户积分管理 投递次数
     */
    public function GarbagePostNum(){
        return $this->hasMany(GarbagePoint::class,'user_id','id');
    }



}